package waal.pc.backend.module;

public class ModuleEvent {

	private int event;
	private Module module;
	
	public ModuleEvent(int event, Module module) {
		this.event = event;
		this.module = module;
	}
	
	public int getEvent() {
		return this.event;
	}
	
	public Module getModule() {
		return this.module;
	}
	
	public String getEventText() {
		switch(this.event) {
		case 1:
			return "Module added";
		case 2:
			return "Module remove";
		case 3: 
			return "Module change active state";
		case 4: 
			return "Channel config change";
		case 5:
			return "Module initialized";
		default:
			return "Unkown Event";
		}
	}
	
}
